#ifndef GINFOSCREEN_H_
#define GINFOSCREEN_H_

#include <MAUI/Screen.h>
#include <MAUI/Layout.h>
#include <MAUI/Label.h>
#include "../Widgets/ScrollPane.h"
#include "../DAOS/DTO.h"
#include "../DAOs/GINFOProcessor.h"

using namespace MAUI;

class GINFOScreen : public Screen, public GINFOListener
{
	public:
		GINFOScreen();
		~GINFOScreen();

		void itemReceived(GINFOItem& item);
		void processingComplete();

		void keyPressEvent(int keyCode, int nativeCode);

		void pointerPressEvent(MAPoint2d point);
		void pointerReleaseEvent(MAPoint2d point);

		void setIsGetData(bool value);

		void setInput(String& id, String& result, String& title);

		void show();

	private:
		GINFOProcessor* mProcessor;
		Layout* mLayout;
		Label* mTitle;
		Label* mResult;
		ScrollPane* panel;
		Widget *softKeys;
		String germId;
		bool isGetData;
};

#endif /* GINFOSCREEN_H_ */
